<?php
/**
 * 小说首页banner
 */

class Dao_BannerModel extends Dao_BaseModel {

    protected $_table = 'banner';

    const NORMAL_STATUS = 1;

    public function __construct ()
    {
        parent::__construct ();
    }
    

    /**
     * 获取banner列表.
     * @param array $wheres
     * @return array|bool
     */
    public function getBannerList ($wheres = [])
    {
        $where    = array ();
        $where[]  = array ( 'banner_status' , self::NORMAL_STATUS );
        $info = parent::getRows ( array ( 'banner_id' , 'banner_cover' ) , $where );
        return $info;
    }
    
}
